package cn.edu.scau.cmi.liyunlin.hibernate.domain;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

public class Student implements Serializable {

	private Long id;
	private Teacher teacher;
	private Major major;
	private String name;
	private Long number;
	private Set teachers = new HashSet(0);
	
	/** default constructor */
	public Student() {
	}

	/** minimal constructor */
	public Student(Long id) {
		this.id = id;
	}

	/** full constructor */
	public Student(Long id, Teacher teacher, Major major, String name, Long number, Set teachers) {
		this.id = id;
		this.teacher = teacher;
		this.major = major;
		this.name = name;
		this.number = number;
		this.teachers = teachers;
	}
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Teacher getTeacher() {
		return teacher;
	}
	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}
	public Major getMajor() {
		return major;
	}
	public void setMajor(Major major) {
		this.major = major;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Long getNumber() {
		return number;
	}
	public void setNumber(Long number) {
		this.number = number;
	}
	public Set getTeachers() {
		return teachers;
	}
	public void setTeachers(Set teachers) {
		this.teachers = teachers;
	}
}
